package com.kkb.mybatis.config;

import java.util.HashMap;
import java.util.Map;

/**
 * User: zsl
 * Date: 2019/10/1011:27
 * Description:全局配置文件的configuration对象
 */
public class Configuration {

    private BaseDataSource baseDataSource;

    private Map<String,MappedStatement> mappedStatements = new HashMap<String, MappedStatement>();



    public  MappedStatement getMappedStatements(String statmentId){

        return  mappedStatements.get(statmentId);
    }


    public void setMappedStatements(String statmentId,MappedStatement mappedStatement) {
        mappedStatements.put(statmentId,mappedStatement);
    }


    public BaseDataSource getBaseDataSource() {
        return baseDataSource;
    }

    public void setBaseDataSource(BaseDataSource baseDataSource) {
        this.baseDataSource = baseDataSource;
    }
}
